text/template/parse.item.val (field)
26 uses
text/template/parse (current package)
lex.go#L18: val string // The value of this item.
lex.go#L27: return i.val
lex.go#L29: return fmt.Sprintf("<%s>", i.val)
lex.go#L30: case len(i.val) > 10:
lex.go#L31: return fmt.Sprintf("%.10q...", i.val)
lex.go#L33: return fmt.Sprintf("%q", i.val)
parse.go#L196: if strings.HasSuffix(token.val, " action") {
parse.go#L329: t.Name, err = strconv.Unquote(name.val)
parse.go#L365: return t.newText(token.pos, token.val)
parse.go#L371: return t.newComment(token.pos, token.val)
parse.go#L459: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L460: t.vars = append(t.vars, v.val)
parse.go#L461: case next.typ == itemChar && next.val == ",":
parse.go#L463: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L464: t.vars = append(t.vars, v.val)
parse.go#L645: s, err := strconv.Unquote(token.val)
parse.go#L699: chain.Add(t.next().val)
parse.go#L733: if checkFunc && !t.hasFunction(token.val) {
parse.go#L734: t.errorf("function %q not defined", token.val)
parse.go#L736: return NewIdentifier(token.val).SetTree(t).SetPos(token.pos)
parse.go#L742: return t.useVar(token.pos, token.val)
parse.go#L744: return t.newField(token.pos, token.val)
parse.go#L746: return t.newBool(token.pos, token.val == "true")
parse.go#L748: number, err := t.newNumber(token.pos, token.val, token.typ)
parse.go#L756: s, err := strconv.Unquote(token.val)
parse.go#L760: return t.newString(token.pos, token.val, s)